package com.aliyun.heiyu.powermaster.server.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface StateGridCollectInfoDao {

    Map<String, String> findOne(String sn);

    Map<String, String> findBySn(String sn, Integer position);

    List<Map<String, String>> findBySnArray1(String[] sns);

    List<Map<String, String>> findSizeInfo(int length,String[] serverIdArray);

    List<Map<String, String>> findSizeInfo(int length);

    List<Map<String, String>> findBySnArray(String[] sns, String startTime, String endTime);

    List<Map<String, String>> getServerInfos(String[] fields);

    public Map<String, String> findMaxOne(String deviceId, String startTime, String endTime);

    boolean insertPduInfos(String pduSn,int branch_current1 ,int branch_current2,int branch_current3,int branch_current4,int branch_current5,int branch_current6,int branch_current7,int branch_current8,int branch_current9,int branch_current10,int branch_current11,int branch_current12,int branch_current13,int branch_current14,int branch_current15,int branch_current16);

    Boolean replaceInsert(Map<String, String> map, String bName) throws SQLException;

}
